package com.yonyou.pmclouds.async.mapper;

import com.yonyou.pmclouds.basecom.async.AsyncInvocationInfo;
import org.apache.ibatis.annotations.Param;

import java.util.Date;

public interface AsyncInfoMapper {

    AsyncInvocationInfo queryById(String id);

    AsyncInvocationInfo queryGivenStateTaskInPeriod(@Param("states") int[] states,
                                                    @Param("start") Date start, @Param("end") Date end);

    int insertInfo(AsyncInvocationInfo info);

    int updateInfo(AsyncInvocationInfo info);

    int deleteInfo(String[] info);
}
